home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 30 / PC Gamer IT CD 30 1-2.iso / MOTS / GAMEDATA / RESOURCE / JKMRES.GOO / cog_00_smoketrail.cog < prev    next >
Text File  |  1998-02-25  |  795b  |  41 lines

  1. # Jedi Knight Cog Script
  2. #
  3. # 00_SMOKETRAIL.COG
  4. #
  5. # Leave a smoke trail behind a moving object
  6. #
  7. # [YB]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10.  
  11. flags=0x240
  12.  
  13. symbols
  14.  
  15. template    smoke=+smoke                     local
  16. int         dummy                            local
  17.  
  18. message     created
  19. message     pulse
  20.  
  21. end
  22.  
  23. # ========================================================================================
  24.  
  25. code
  26. created:
  27.    SetThingPulse(GetSenderRef(), 0.05);            // set 50 msec timer for smoke release
  28.  
  29.    Return;
  30.  
  31. # ........................................................................................
  32.  
  33. pulse:
  34.    dummy = CreateThing(smoke, GetSenderRef());     // create smoke at our current location
  35.  
  36.    Return;
  37.  
  38. end   
  39.  
  40.  
  41.